package com.pinda.commonutils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 黄杰
 * TODO 返回结果类型
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Result <T>{
    private boolean flag;//是否成功
    private Integer code;//状态码
    private String message;//消息
    private T data;//返回数据
}
